package cz.proks.bank.client;

import javax.activation.DataHandler;
import javax.xml.ws.WebServiceException;

import org.springframework.stereotype.Service;

import cz.proks.bank.service.fileservice.FileService;
import cz.proks.bank.service.fileservice.FileService_Service;
import cz.proks.bank.service.fileservice.Report;
import cz.proks.bank.service.fileservice.ReportException_Exception;
import cz.proks.bank.service.fileservice.ReportRequest;

@Service
public class FileServiceClient implements FileService {
	private FileService service;
	
	public FileServiceClient() throws WebServiceException {
		service = new FileService_Service().getFileServicePort();
	}

	public Report generateAccountReport(ReportRequest parameters)
			throws ReportException_Exception {
		return service.generateAccountReport(parameters);
	}		
}
